import React from 'react'
import"./details.less"
import{Button} from "antd-mobile"
export default function Details(props) {
    let {info ,changeBtn} = props
    return (
        <div className="details">
            <img src={info.img} alt="" />
            <p>{info.goodsname}</p>
            <p className="price">￥{info.price}</p>
            <i>{info.description}</i>
            <Button type="primary" onClick={()=>changeBtn()}>加入购物车</Button>
        </div>
    )
}